const mysql = require('mysql');
const db = mysql.createConnection({
    host:'localhost',
    user:'root',
    password:'root',
    database:'restaurant'
})
db.connect();
 const timer= setInterval(()=>{
    db.query('select * from user')
  },4000);
module.exports = db